class CreateCourses < ActiveRecord::Migration
  def self.up
    create_table :courses do |t|
      t.column :nome, :string, :limit => 32, :null => false
      t.column :carga_horaria, :integer , :limit => 32, :null => false
      t.column :descricao, :string, :limit => 100, :null => false
      t.timestamps
    end
  end

  def self.down
    drop_table :courses
  end
end
